home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / FPUTC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  310 b   |  10 lines

  1. /*  fputc.c, from p. 425 of Turbo C Bible  */
  2. #include <stdio.h>
  3. char buffer[81] = "testing fputc on stdout...\n";
  4. main()
  5. {
  6.     int i;
  7.                 /*  A for loop that uses fputc to print  */
  8.                 /*  to stdout                            */
  9.     for(i = 0; (i < 81) && (fputc(buffer[i], stdout) != EOF); i++);
  10. }